package com.example.archive.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName("archive_approval_requests")
public class ArchiveApprovalRequest {
    @TableId(type = IdType.AUTO)
    private Integer requestId;
    private Integer archiveId;
    private String requestType;
    private String requestedValue;
    private Integer requesterId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date requestTime;
    private String status;
    private Integer approverId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date approvalTime;
    private String notes;
    
    // 翻译字段，不映射到数据库
    @TableField(exist = false)
    private String archiveTitle;
    
    @TableField(exist = false)
    private String requesterName;
    
    @TableField(exist = false)
    private String approverName;
} 